package cn.tedu.store.controller;

import javax.servlet.http.HttpSession;

import cn.tedu.store.bean.User;
/**
 * 获取用户id 的controller方法
 * @author Administrator
 *
 */
public class BaseController {
	public Integer getUid(HttpSession session){
		Integer id=null;
		User user=(User) session.getAttribute("user");
		if(user!=null){
			id=user.getId();
		}
		return id;
	}
}
